<?php

namespace App\Http\Controllers\Admin;


use App\Models\ManagerLog;

class ManagerLogController extends CurdController
{
    protected string $classModel = ManagerLog::class;

    protected array $searchFields = [
        // 'user_id' => self::FIELD_TYPE_NUMERIC,
        'username'    => self::FIELD_TYPE_NORMAL,
        'path'    => self::FIELD_TYPE_LIKE,
        'method'  => self::FIELD_TYPE_NORMAL,
        'ip'      => self::FIELD_TYPE_NORMAL,
        'created_at' => self::FIELD_TYPE_DATETIME_RANGE,
    ];

    protected array $relationWiths = [
        'manager:id,name',
    ];
}
